home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 1996
/
MacHack 1996.toast
/
Hacks
/
Hacks ’92
/
Text Capture FKEY
/
My_StdText.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-06-12
|
577b
|
33 lines
#include "defs.h"
#define CHECKPOINTS 0
#include "debug.h"
pascal void My_StdText( short byteCnt, Ptr textAddr,
Point numerPt, Point denomPt )
{
GrafPtr save_port;
asm {
movem.l a0-a5/d0-d7, -(SP) ; save registers
LEA main, A4 ; for addressing global variables
}
CKPT("My_StdText start");
if (byteCnt > 0)
{
GetPort( &save_port );
SetPort( text_port );
(*Copy_text)( byteCnt, textAddr );
SetPort( save_port );
}
(*Old_StdText)( byteCnt, textAddr, numerPt, denomPt );
CKPT("My_StdText end");
asm {
movem.l (SP)+, a0-a5/d0-d7
}
}